package com.kclmedu.springsecuritydb.dao;

import com.kclmedu.springsecuritydb.entity.User;
import org.springframework.data.jpa.repository.JpaRepository;

public interface UserDao extends JpaRepository<User, Long> {

    /********
     * 根据登录名查询
     * @param username
     * @return
     */
    User findByUsername(String username);

}
